//
//  ViewController.swift
//  Example
//
//  Created by mac on 2022/6/15.
//

import UIKit
import UGImage
import SDWebImage
class ViewController: UIViewController {

    @IBOutlet weak var sdImageView: UIImageView!
    @IBOutlet weak var imageView: UIImageView!
    override func viewDidLoad() {
        super.viewDidLoad()

    }

    @IBAction func selectImageDoit(_ sender: Any) {
        self.ug_selectImages { imagePicker in
            
        } finish: { images, assets, ispro in
            // 保存图片到本地 return 图片名
            if let name = images?.first?.ug_saveToloc(){
                // 使用实例
                self.imageView.image = UIImage.ug_locImage(name)
                self.sdImageView.sd_setImage(with: UIImage.ug_locUrl(name))
            }
            
        }

    }
    
}

